package homework36;

public class FanCommand extends Command{
    ReceiveFan receiveFan = new ReceiveFan();
    @Override
    public void execute() {
        System.out.println("打开电风扇开关....");
        receiveFan.fan();
    }
}

class  ReceiveFan{
    public void fan(){
        System.out.println("电风扇转...");
    }
}
